The generated image contains libjpackageapplauncheraux.so that
contains a destructor function dcon(). It calls already disposed
logger, causing a crash.
Last-Update: 2024-07-18
Gbp-Pq: Name jdk-8312488.patch
time_t transition in Debian/Ubuntu left 32 bit time_t symbols in glibc.
Looking up 'futimens' via dlsym returns 32 bit version of the function.
This is causing failure to set last modified time
(e.g. instead of year 2017 we get 1976 in the test).
Using the function directly correctly calls 64 bit versions.
When we lookup functions with time_t arguments through dlsym()
calls we should use 64 bit versions.
Last-Update: 2024-07-17
Gbp-Pq: Name jdk-8336529-proposed.patch
ARM64 requires cds alignment option to be enabled if CDS is enabled.
Setting it to true will enable the option even if CDS is disabled
causing a configuration error. Setting option to auto allows one to
enable it only when CDS is enabled.
The attach API uses /proc/pid/root in order to support containers.
Dereferencing this symlink is governed by ptrace access mode PTRACE_MODE_READ_FSCREDS
which may not succeed when running as the user running the JRE.
This breaks running jcmd and jmap as the same user the JVM is running as.
Use tmpdir when pid matches ns_pid.
From 36b554e2de46d77898be4d0feae0ee2171b445bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= <sebastian.lovdahl@hibox.tv>
Date: Tue, 18 Apr 2023 12:50:32 +0300
Subject: [PATCH] 8226919: Fix dynamic attach in Linux for non-container
environments
OpenJDK Team [Thu, 1 May 2025 08:40:21 +0000 (10:40 +0200)]
Misalign address in the test rather than structure
mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
Add 1 to address type rather than aligned structure to produce misaligned pointer.
jexec uses argv[0] parameter to find its own location.
argv[0] is populated with the command value causing a failure to locate java
when jexec is found in the PATH (in this case argv[0] contains just 'jexec')
The cause is the use of dh_strip_nondeterminism late in the build
process. This reorganises the jmod files, which in turn changes their
SHA256 checksums. This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism. Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.
OpenJDK Team [Thu, 1 May 2025 08:40:21 +0000 (10:40 +0200)]
Revert upstream default to GTK2
OpenJDK 11 uses GTK3 by default for the GTK Look and Feel but it still
has too many pending issues and artifacts and is not on par with GTK2
support. This patch is the reverse of the upstream commit which ensures
that GTK2 is tried before GTK3.
When GTK3 becomes better supported we should drop this and update the
dlopen_jre_depends variable in debian/rules accordingly.
Origin: upstream, http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1
Bug: https://bugs.openjdk.java.net/browse/JDK-8198649,
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8198654
Bug-Ubuntu: https://launchpad.net/bugs/1770278
Forwarded: not-needed
Applied-Upstream: http//hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1 Reviewed-by: <name and email of a reviewer, optional>
Last-Update: 2019-03-27 <YYYY-MM-DD, last update of the meta-information, optional>
The generated image contains libjpackageapplauncheraux.so that
contains a destructor function dcon(). It calls already disposed
logger, causing a crash.
Last-Update: 2024-07-18
Gbp-Pq: Name jdk-8312488.patch
time_t transition in Debian/Ubuntu left 32 bit time_t symbols in glibc.
Looking up 'futimens' via dlsym returns 32 bit version of the function.
This is causing failure to set last modified time
(e.g. instead of year 2017 we get 1976 in the test).
Using the function directly correctly calls 64 bit versions.
When we lookup functions with time_t arguments through dlsym()
calls we should use 64 bit versions.
Last-Update: 2024-07-17
Gbp-Pq: Name jdk-8336529-proposed.patch
ARM64 requires cds alignment option to be enabled if CDS is enabled.
Setting it to true will enable the option even if CDS is disabled
causing a configuration error. Setting option to auto allows one to
enable it only when CDS is enabled.
The attach API uses /proc/pid/root in order to support containers.
Dereferencing this symlink is governed by ptrace access mode PTRACE_MODE_READ_FSCREDS
which may not succeed when running as the user running the JRE.
This breaks running jcmd and jmap as the same user the JVM is running as.
Use tmpdir when pid matches ns_pid.
From 36b554e2de46d77898be4d0feae0ee2171b445bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= <sebastian.lovdahl@hibox.tv>
Date: Tue, 18 Apr 2023 12:50:32 +0300
Subject: [PATCH] 8226919: Fix dynamic attach in Linux for non-container
environments
OpenJDK Team [Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)]
Misalign address in the test rather than structure
mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
Add 1 to address type rather than aligned structure to produce misaligned pointer.
jexec uses argv[0] parameter to find its own location.
argv[0] is populated with the command value causing a failure to locate java
when jexec is found in the PATH (in this case argv[0] contains just 'jexec')
The cause is the use of dh_strip_nondeterminism late in the build
process. This reorganises the jmod files, which in turn changes their
SHA256 checksums. This would not be a problem, except that the
checksums are saved in java.base.jmod *before* the use of
dh_strip_nondeterminism. Performing this stripping immediately after
each jmod file is created results in the checksums being consistent
throughout.
OpenJDK Team [Thu, 24 Apr 2025 00:05:43 +0000 (02:05 +0200)]
Revert upstream default to GTK2
OpenJDK 11 uses GTK3 by default for the GTK Look and Feel but it still
has too many pending issues and artifacts and is not on par with GTK2
support. This patch is the reverse of the upstream commit which ensures
that GTK2 is tried before GTK3.
When GTK3 becomes better supported we should drop this and update the
dlopen_jre_depends variable in debian/rules accordingly.
Origin: upstream, http://hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1
Bug: https://bugs.openjdk.java.net/browse/JDK-8198649,
https://bugs.java.com/bugdatabase/view_bug.do?bug_id=JDK-8198654
Bug-Ubuntu: https://launchpad.net/bugs/1770278
Forwarded: not-needed
Applied-Upstream: http//hg.openjdk.java.net/jdk-updates/jdk11u/rev/3e3696a308e1 Reviewed-by: <name and email of a reviewer, optional>
Last-Update: 2019-03-27 <YYYY-MM-DD, last update of the meta-information, optional>
The generated image contains libjpackageapplauncheraux.so that
contains a destructor function dcon(). It calls already disposed
logger, causing a crash.
Last-Update: 2024-07-18
Gbp-Pq: Name jdk-8312488.patch
time_t transition in Debian/Ubuntu left 32 bit time_t symbols in glibc.
Looking up 'futimens' via dlsym returns 32 bit version of the function.
This is causing failure to set last modified time
(e.g. instead of year 2017 we get 1976 in the test).
Using the function directly correctly calls 64 bit versions.
When we lookup functions with time_t arguments through dlsym()
calls we should use 64 bit versions.
Last-Update: 2024-07-17
Gbp-Pq: Name jdk-8336529-proposed.patch
ARM64 requires cds alignment option to be enabled if CDS is enabled.
Setting it to true will enable the option even if CDS is disabled
causing a configuration error. Setting option to auto allows one to
enable it only when CDS is enabled.
The attach API uses /proc/pid/root in order to support containers.
Dereferencing this symlink is governed by ptrace access mode PTRACE_MODE_READ_FSCREDS
which may not succeed when running as the user running the JRE.
This breaks running jcmd and jmap as the same user the JVM is running as.
Use tmpdir when pid matches ns_pid.
From 36b554e2de46d77898be4d0feae0ee2171b445bc Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Sebastian=20L=C3=B6vdahl?= <sebastian.lovdahl@hibox.tv>
Date: Tue, 18 Apr 2023 12:50:32 +0300
Subject: [PATCH] 8226919: Fix dynamic attach in Linux for non-container
environments
OpenJDK Team [Thu, 27 Mar 2025 12:35:58 +0000 (13:35 +0100)]
Misalign address in the test rather than structure
mk68-support.diff aligned metaspace structures by 4 bytes breaking the test.
Add 1 to address type rather than aligned structure to produce misaligned pointer.
jexec uses argv[0] parameter to find its own location.
argv[0] is populated with the command value causing a failure to locate java
when jexec is found in the PATH (in this case argv[0] contains just 'jexec')